package cn.edu.wynu;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class TestCalculator {
    public static void main(String[] args) {
        AnnotationConfigApplicationContext context =
                new AnnotationConfigApplicationContext(ConfigClass.class); // ctrl + alt + v或者.var+enter
        Calculator calculator = context.getBean(Calculator.class);
        calculator.add(1, 2);
        calculator.sub(2, 1);
        calculator.multiply(2, 3);
    }
}